﻿using Microsoft.Extensions.DependencyInjection;
using Chat_IService;
using Chat_Service;

namespace Chat_WebApi.ConfigServices
{
    /// <summary>
    /// 注入服务
    /// </summary>
    public static class TransientConfig
    {
        /// <summary>
        /// 注入服务
        /// </summary>
        public static void AddTransientDI(this IServiceCollection services)
        {
            services.AddTransient(typeof(ILarUsersService), typeof(LarUsersService));
            services.AddTransient(typeof(ILarUsersFriendsService), typeof(LarUsersFriendsService));
            services.AddTransient(typeof(ILarUsersFriendsApplyService), typeof(LarUsersFriendsApplyService));
            services.AddTransient(typeof(ILarUsersEmoticonService), typeof(LarUsersEmoticonService));
            services.AddTransient(typeof(ILarTalkListService), typeof(LarTalkListService));
            services.AddTransient(typeof(ILarTalkRecordsService), typeof(LarTalkRecordsService));
            services.AddTransient(typeof(ILarGroupService), typeof(LarGroupService));
            services.AddTransient(typeof(ILarGroupMemberService), typeof(LarGroupMemberService));
        }
    }
}
